home *** CD-ROM | disk | FTP | other *** search
- function getReady()
- {
- _root.bulletNow_ready.play();
- gotoAndStop("shootReady");
- play();
- }
- function shootStart()
- {
- _root.controlNow.activeStart();
- }
- function onShootEnd()
- {
- gotoAndStop("shootEnd");
- play();
- }
- function onShootEnd_2()
- {
- bulletNum--;
- _root.setBulletNum(bulletNum);
- if(_root.mc.balloonNum == 0)
- {
- showWin();
- return undefined;
- }
- if(bulletNum == 0)
- {
- showEnd();
- return undefined;
- }
- _root.mc.resetBullet(_root.playerSide);
- nextShoot(_root.playerSide);
- getReady();
- }
- function nextShoot(id)
- {
- _root.roleNow = _root.role;
- _root.controlNow = _root.control;
- _root.bulletNow = _root.bullet;
- _root.bulletNow_ready = _root.bullet_ready;
- _root.mc.cameraMoveTo(_root.role,_root.centerX,_root.centerY + 80);
- }
- function showEnd()
- {
- _root.hideStatus();
- gotoAndStop("end");
- play();
- }
- function showWin()
- {
- _root.hideStatus();
- gotoAndStop("win");
- play();
- }
- stop();
- var bulletNum = 5;
- _root.setBulletNum(bulletNum);
-